#pragma once
#include "stdafx.h"
#include "CSprite.h"

class CChara{
public:
	CChara();
	CSprite m_sprite;
	byte m_animation;
	void	Draw();
	void	Update();
protected:
	D3DXVECTOR3 m_vecbuf;
	D3DXVECTOR3 m_vec;
	int m_hp;
	int m_animationdelay;
	static const float MOVE_SPEED;
	static const int ANIMATION_DELAY;
	static const int CHARA_WIDTH;
	static const int CHARA_HEIGHT;
	BOOL	CollisionMap(int buf);
private:
	float move_rotation;
};

class CPlayer:
	public CChara{
private:
	byte	m_hoge;
	int	lkey_flag[2],nkey_flag[2],key_flag;
	float m_jpangle;
	int	m_jpdelay;
	BOOL m_jpflg;
public:
	CPlayer();
	void	KeyUpdate();
};